//
//  MrMIDIBottomCell.m
//  MIDI
//
//  Created by EMG on 15/9/8.
//  Copyright (c) 2015年 QXSX. All rights reserved.
//

#import "MrMIDIBottomCell.h"
#import "CommFunc.h"

@implementation MrMIDIBottomCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(int)getHeight
{
    int height = [CommFunc sizeWithString:self.belong_institutionLb.text
                                     font:[UIFont fontWithName:@"Hiragino Sans GB" size:15]
                                      max:CGSizeMake(self.belong_institutionLb.frame.size.width, MAXFLOAT)].height;
    
    if (height <= 0)
        return 212;
    else
    {
        int i = self.belong_institutionLb.frame.origin.y;
        height = 212 - 50 + self.belong_institutionLb.frame.origin.y + height + 2;
        return height;
    }
    
    return 0;
}


@end















